package com.xys.auth.service;

import com.xys.auth.bean.Member;
import com.xys.auth.bean.Orders;
import com.xys.auth.bean.Traveller;

import java.util.List;

public interface IOrderService {
   /**
    * 查询所有订单数据，分页
    * @param page
    * @param pageSize
    * @return
    */
   List<Orders> findAll(Integer page, Integer pageSize);

   /**
    * 通过订单id查询订单信息
    * @param id
    * @return
    */
   Orders findById(String id);


   int save(Orders orders);

   void addProductToOrders(String id, String[] ids);

   int saveTraveller(Traveller traveller, String id);

   int saveMember(Member member, Orders orders);

   void update(String id);

   void delete(String id);
}
